package com.example.demo.controller;

import com.example.demo.survice.UserService;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.ArrayList;

@Controller
@ResponseBody
public class UserControlloer {
    @Resource
    private UserService userService;
    @RequestMapping("/apple")
    public ArrayList getAllData(){
        return userService.getAllData();
    }
}
